/*
 * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef BASE_THING_MODEL_H
#define BASE_THING_MODEL_H

#include <tuple>
#include "sle_thing_model_define.h"

namespace OHOS {
namespace iotConnect {
class AbstractDevice {
public:
    virtual int32_t DevInfoGetCharState(const IotcCharState inData, std::string *data, uint32_t *len) const = 0;
    virtual int32_t ConfigurationManagementGetCharState(
        const IotcCharState inData, std::string *data, uint32_t *len) = 0;
    virtual int32_t ConfigurationManagementPutCharState(
        const IotcCharState inData, const char *data, uint32_t len) = 0;
    virtual int32_t InternalHandler(const IotcCharState inData, std::string& out,
        ThingModelPutOrGet flag = ThingModelPutOrGet::GET){return 0;};
    virtual int32_t GetAllInfoHandler(const std::string& devId, IotcCharState *state) = 0;
    virtual ~AbstractDevice(){};
public:
    int32_t SVC_NUMBER = 0;
};
}
}
#endif
